package com.gxlu.ms.client.module.param;

import java.util.HashMap;
import java.util.Map;

/**
 * 页面参数基类
 * @author andy.lhc
 * @date 2018/3/16
 */
public class PageParam extends BaseParam {

    private Map<String, String> requestHeader = new HashMap();

    private Map<String, Object> requestSession = new HashMap();

    private String sessionId;

    private Long userId;

    private String userName;

    /**
     * 接入buc的ID
     */
    private String bucId;

    /**
     * 当前页号,relim传过来是这个值
     * 先用这个接收
     */
    private Integer current;

    /**
     * 当前页号
     */
    private Integer pageNum = 1;

    /**
     * 每页多少条记录
     */
    private Integer pageSize = 20;

    /**
     * 原始扩展参数
     */
    private String extParamStr;

    public Map<String, String> getRequestHeader() {
        return requestHeader;
    }

    public Map<String, Object> getRequestSession() {
        return requestSession;
    }

    public String getSessionId() {
        return sessionId;
    }

    public void setSessionId(String sessionId) {
        this.sessionId = sessionId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getExtParamStr() {
        return extParamStr;
    }

    public void setExtParamStr(String extParamStr) {
        this.extParamStr = extParamStr;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum == null ? 1 : pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getBucId() {
        return bucId;
    }

    public void setBucId(String bucId) {
        this.bucId = bucId;
    }

    public Integer getCurrent() {
        return current;
    }

    public void setCurrent(Integer current) {
        this.current = current;
    }
}